import request from '@/utils/request'

// 创建会话
export function createSeekChat(data) {
  return request({
    url: '/car/seek-chat/create',
    method: 'post',
    data: data
  })
}

// 更新会话
export function updateSeekChat(data) {
  return request({
    url: '/car/seek-chat/update',
    method: 'put',
    data: data
  })
}

// 删除会话
export function deleteSeekChat(id) {
  return request({
    url: '/car/seek-chat/delete?id=' + id,
    method: 'delete'
  })
}

// 获得会话
export function getSeekChat(id) {
  return request({
    url: '/car/seek-chat/get?id=' + id,
    method: 'get'
  })
}

// 获得会话分页
export function getSeekChatPage(query) {
  return request({
    url: '/car/seek-chat/page',
    method: 'get',
    params: query
  })
}

// 导出会话 Excel
export function exportSeekChatExcel(query) {
  return request({
    url: '/car/seek-chat/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
